package com.wfw.second.feign;

import com.wfw.common.pojo.TestVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @ Author     ：duanchao
 * @ Date       ： 10:08 2021/1/5
 * @ Description：
 */
@FeignClient("wfw-first")
public interface FirstFeignService {

    /**无参*/
    @GetMapping(value = "frist/uuid")
    String  getUUid();
    /**get 单参*/
    @GetMapping(value = "frist/firstParamo")
    String firstParam( @RequestParam  String uname);
    /**get 多参*/
    @GetMapping(value = "frist/secondParam")
    TestVo secondParam( @RequestParam  String uname,   @RequestParam  Integer age);
    /**get 对象*/
    @GetMapping(value = "frist/test/pojo")
    String testGetPojo(@SpringQueryMap  TestVo testVo);


    @PostMapping(value = "frist/postFirstParam")
    String postFirstParam(  @RequestBody  String uname);
    @PostMapping(value = "frist/postSecondParam")
    String postSecondParam(@RequestParam  String uname, @RequestBody   Integer age);
    @PostMapping(value = "frist/postTestGetPojo")
    String postTestGetPojo(@RequestBody TestVo testVo);



}